<?php  session_start();
/**
* @package		Parents@School
* @copyright	                Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		2.0
* @license		GNU/GPL, see LICENSE.php
**/
include ("../include/config.php");
require_once ("../include/db.php");
include ("../include/header.php");
?>
<head>
<link rel="stylesheet" href="../css/template_css.css" type="text/css"/> 
</head>

<body>
<div align="center"><img src="<?php echo "../$logo" ; ?>" />
</div>
<?php
if(isset($_SESSION['myusername'])){
	if($_SESSION['klas'] == 'LK') {
		echo $navigatielk ;
$user = $_SESSION['myusername'];
$sql = "SELECT * FROM $tbres WHERE LeerkrachtID='$user'";
$result = mysql_query($sql);
echo " <p align='center'>Dit zijn de reservaties voor $user</p>";
echo " <table width='100%'>
		<tr>
		<td>Naam</td>
		<td>Uur</td>
		<td>Klas</td>
		<td>Vak</td>
		<td>Lokaal</td>
		</tr>
		";
while ($row = mysql_fetch_array($result)){
		$lkid = $row['LeerkrachtID'];
		$naam = $row['Gebruikersnaam'];
		$uur = $row['Uur'];
		$resid = $row['ReservatieID'];
		$lknaam = $row['Leerkrachtnaam'];
		$klas = $row['Klas'];
		$lokaal = $row['Lokaal'];
		$vak = $row['Vak'];
		echo " 
		<tr>
		<td>$naam</td>
		<td>$uur</td>
		<td>$klas</td>
		<td>$vak</td>
		<td>$lokaal</td><hr />
		</tr>
		</table>";}}
		echo $printpage; }
else{
header("location:index.php");
}

?>
</body>